<?php
/*
Template Name: Career
Description: This part is optional, but helpful for describing the Post Template
*/

?>
<?php get_header ();?>
<body>
<div class="container">

<div class="header">
    <ul>
          <li class="f">
        <div class="logo"> <a href="index.html"><img  src="<?php echo get_template_directory_uri ();?>/images/Mahally-logo.png" /> </a></div>
      </li>
          <li class="f-r">
        <div class="menu ">
              <div class="search f-r">
            <div class="search-warper"> search
                  <input name="search-txt" class="search-txt" id="search" >
                  </textarea>
                </div>
          </div>
              <div class="clearfix"> </div>
              <ul>
              <?php

				$defaults = array(
					'theme_location'  => '',
					'menu'            => '',
					'container'       => 'ul',
					'container_class' => '',
					'container_id'    => '',
					'menu_class'      => 'f',
					'menu_id'         => '',
					'echo'            => true,
					'fallback_cb'     => 'wp_page_menu',
					'before'          => '',
					'after'           => '',
					'link_before'     => '',
					'link_after'      => '',
					'items_wrap'      => '%3$s',
					'depth'           => 0,
					'walker'          => ''
				);
				
				wp_nav_menu( $defaults );
				
				?>
          </ul>
            </div>
      </li>
        </ul>
  </div>
<ul>
  <li class="f">
    <div class="sidebar f">
      <div class="design"><img src="<?php echo get_template_directory_uri ();?>/images/SHOW-ROOM.png"/> </div>
      
    </div>
  </li>
  <li class="f-r">
    <div class="content">
    <div class="top"> </div>
    <div class="middle">
    
      <h1> Careers </h1><div class="middle-career">
       <?php
							$category_id = get_cat_ID('career');
							//echo $category_id;
							$args = array( 'category' => $category_id  ,'numberposts'     => -1 ,'post_status'     => 'any',);
							$lastposts = get_posts( $args );
							foreach($lastposts as $post) : setup_postdata($post); ?>
  <div class="single-career">
      <h3><a href="<?php the_permalink(); ?>"> <? the_title(); ?></a></h3>
      <p><? the_content(); ?></p>
          
 <div class="career-divider"> ---------------------------------------------------------------- </div>
      
      <?php endforeach; ?>
      
   </div>   
    </div>
	  </div>
	  </div>
  <div class="bottom"> </div>
  </li>
</ul>

<?php get_footer ();?>